#pragma once
#include "Tools/Image.h"
#include "State/GameState.h"
namespace LTGame
{
	class ST_PAUSE
		:public GameState
	{
	public:
		ST_PAUSE(GST_FLAG flag);
		~ST_PAUSE();
		bool logic(void);
		void paint(void);
		bool doPressLogic(int i);
		void paintPressLogic(int i);

	public:
		virtual void ccTouchEnded(CCTouch *pTouch, CCEvent *pEvent);
		virtual bool ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent);
	private:
		cocos2d::CCSprite* img_bg;
		cocos2d::CCSprite* img_pause;
		cocos2d::CCSprite* img_pausebg;
		Image* img_back;
		float y_v;
		int selIndex;
		int isExit;
		float screen_v;
	};
}